package com.fates.module.aop.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.fates.module.constant.OperatorType;
import com.fates.module.aop.annotation.Log;

/**
 * 自定义操作日志记录注解
 * 
 * @author ruoyi
 * @see 
 *     
 *      @Log(title = "登陆日志", action = BusinessType.EXPORT)
 *      public AjaxResult export(Logininfor logininfor) throws Exception
 *      
 *      @Log(title = "登陆日志", action = BusinessType.DELETE)
 *      public AjaxResult remove(String ids)
 */
@Target({ ElementType.PARAMETER, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log
{
    /** 模块 */
    String title() default "";

    /** 功能 */
    String action() default "";//default BusinessType。OTHER

    /** 渠道 */
    String channel() default OperatorType.MANAGE;

    /** 是否保存请求的参数 */
    boolean isSaveRequestData() default true;

}